<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>查询会员</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<jsp:include page="header.jsp"/>

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMember" class="list-group-item">会员列表</a>
                <a href="${pageContext.request.contextPath }/adminMember?method=search"
                   class="list-group-item active">查询会员</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>会员管理</h1>
            </div>
            <div class="container">
                <ul class="nav nav-tabs" role="tablelist">
                    <li role="presentation" class="active">
                        <a href="#SearchByID" aria-controls="special" role="tab" data-toggle="tab">会员ID查找</a>
                    </li>
                    <li role="presentation">
                        <a href="#SearchByName" aria-controls="special" role="tab" data-toggle="tab">会员姓名查找</a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div role="tabpanel" class="tab-pane active fade in" id="SearchByID">
                        <form action="${pageContext.request.contextPath }/adminMember?method=searchById" method="post"
                              class="user_search">
                            <div class="form-group">
                                <label for="memberId">会员ID:</label>
                                <input type="text" id="memberId" class="form-control" name="id"
                                       placeholder="请在此输入会员ID"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>

                    <div role="tabpanel" class="tab-pane fade" id="SearchByName">
                        <form action="${pageContext.request.contextPath }/adminMember?method=searchByName" method="post"
                              class="user_search">
                            <div class="form-group">
                                <label for="memberName">会员姓名:</label>
                                <input type="text" id="memberName" class="form-control" name="name"
                                       placeholder="请在此输入会员姓名"/>
                            </div>
                            <button type="submit" class="btn btn-default">查询</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!--footer-->
<jsp:include page="footer.jsp"/>
<!--footer-->

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>